package com.bfly.mall.product.dto;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * 运价模板表单DTO
 *
 * @author 长沙商脉科技有限公司
 * @date 2020/9/15 21:02
 */
public class FreightTemplateFormDTO implements Serializable {

    private static final long serialVersionUID = -1138747204219636847L;

    private int id;
    @NotBlank(message = "运价模板名称不能为空!")
    private String name;
    private boolean freeShipping;
    private int pricingMethod;
    private boolean freeConditions;
    private List<FreightFreeConditionsFormDTO> conditions;
    private List<FreightTemplatePricingFormDTO> pricings;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isFreeShipping() {
        return freeShipping;
    }

    public void setFreeShipping(boolean freeShipping) {
        this.freeShipping = freeShipping;
    }

    public int getPricingMethod() {
        return pricingMethod;
    }

    public void setPricingMethod(int pricingMethod) {
        this.pricingMethod = pricingMethod;
    }

    public boolean isFreeConditions() {
        return freeConditions;
    }

    public void setFreeConditions(boolean freeConditions) {
        this.freeConditions = freeConditions;
    }

    public List<FreightTemplatePricingFormDTO> getPricings() {
        return pricings;
    }

    public void setPricings(List<FreightTemplatePricingFormDTO> pricings) {
        this.pricings = pricings;
    }

    public List<FreightFreeConditionsFormDTO> getConditions() {
        return conditions;
    }

    public void setConditions(List<FreightFreeConditionsFormDTO> conditions) {
        this.conditions = conditions;
    }
}
